<script lang="ts">
	import { onMount, getContext } from 'svelte';

	import { expiration } from '$lib/stores';

	import Modal from './common/Modal.svelte';

	export let show = false;
</script>

<Modal bind:show>
	<div class="text-white">
		<div class=" flex justify-between dark:text-gray-300 px-5 py-4">
			<div class=" text-lg font-medium self-center">购买信息</div>
			<button
				class="self-center"
				on:click={() => {
					show = false;
				}}
			>
				<svg
					xmlns="http://www.w3.org/2000/svg"
					viewBox="0 0 20 20"
					fill="currentColor"
					class="w-5 h-5"
				>
					<path
						d="M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"
					/>
				</svg>
			</button>
		</div>
		<hr class=" dark:border-gray-800" />
		<div class="px-8 mb-10">
			<p class="p-10">试用期限: {$expiration.expiry_date}</p>
			<p>
				非常感谢试用我们的软件，您的试用期还剩 {$expiration.trial_remain} 天，如果喜欢我们的产品，请购买标准版。售价：2万元，一次购买，享受持久更新与专业技术支持。
			</p>
			<p class="pt-2">联系方式：刘经理 18652025275</p>
		</div>
	</div>
</Modal>
